﻿using System;

namespace Yaml.Serialization.Events {
    internal class CollectionStartEvent : TaggedEvent {
        private bool isImplicit;
        private FlowStyle flowStyle;

        public CollectionStartEvent(string anchor, string tag, bool isImplicit, FlowStyle flowStyle)
            : base(tag, anchor) {
            this.isImplicit = isImplicit;
            this.flowStyle = flowStyle;
        }

        public bool Implicit {
            get { return this.isImplicit; }
        }

        public FlowStyle FlowStyle {
            get { return this.flowStyle; }
        }
    }
}
